<?php namespace Home\Controller; 

use Hdphp\Controller\Controller;

//测试控制器
class IndexController extends Controller{
    public function index(){
//  	  首页右边的商品分类
    	$arcModel = new \Common\Model\Cate;
		//分类表和商品表关联
	     $arcData=$arcModel->get();
		 $arcData=Data::channelLevel($arcData, $pid = 0, $html = "&nbsp;", $fieldPri = 'cid', $fieldPid = 'pid', $level = 1);
//		 p($arcData);
		View::with('arcData',$arcData);
        View::make();
    }
}
